package com.ruoyi.buy.mapper.PO;

import com.ruoyi.buy.domain.entity.PO.BuyPurchasePost;
import com.ruoyi.buy.domain.entity.PO.BuyPurchasePostItem;
import com.ruoyi.buy.domain.entity.PO.BuyPurchasePostNew;

import java.util.List;

/**
 * 采购邮寄Mapper接口
 * 
 * @author ruoyi
 * @date 2023-12-18
 */
public interface BuyPurchasePostMapperNew
{
    /**
     * 查询采购邮寄
     * 
     * @param id 采购邮寄主键
     * @return 采购邮寄
     */
    public BuyPurchasePost selectBuyPurchasePostById(Long id);

    /**
     * 查询采购邮寄列表
     * 
     * @param buyPurchasePost 采购邮寄
     * @return 采购邮寄集合
     */
    public List<BuyPurchasePost> selectBuyPurchasePostList(BuyPurchasePostNew buyPurchasePost);

    /**
     * 新增采购邮寄
     * 
     * @param buyPurchasePost 采购邮寄
     * @return 结果
     */
    public int insertBuyPurchasePost(BuyPurchasePostNew buyPurchasePost);

    /**
     * 修改采购邮寄
     * 
     * @param buyPurchasePost 采购邮寄
     * @return 结果
     */
    public int updateBuyPurchasePost(BuyPurchasePostNew buyPurchasePost);

    /**
     * 删除采购邮寄
     * 
     * @param id 采购邮寄主键
     * @return 结果
     */
    public int deleteBuyPurchasePostById(Long id);

    /**
     * 批量删除采购邮寄
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBuyPurchasePostByIds(Long[] ids);

    /**
     * 批量删除物流明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBuyPurchasePostItemByNMainIds(Long[] ids);
    
    /**
     * 批量新增物流明细
     * 
     * @param buyPurchasePostItemList 物流明细列表
     * @return 结果
     */
    public int batchBuyPurchasePostItem(List<BuyPurchasePostItem> buyPurchasePostItemList);
    

    /**
     * 通过采购邮寄主键删除物流明细信息
     * 
     * @param id 采购邮寄ID
     * @return 结果
     */
    public int deleteBuyPurchasePostItemByNMainId(Long id);
}
